#idl文件名字
set(IDL_NAME Messenger)
set(GENERATED_DIR  ${CMAKE_CURRENT_SOURCE_DIR}/out_stub)

# Configure IDL compilation
configure_corba_idl(${IDL_NAME} ${GENERATED_DIR})

#服务端    C.cpp  S.cpp  _i.cpp
add_executable(ns_server MessengerServer.cpp  Messenger_i.cpp Messenger_i.h ${IDL_GENERATED_FILES_S})
target_include_directories(ns_server PUBLIC ${GENERATED_DIR})

#客户端 C.cpp
add_executable(ns_client MessengerClient.cpp ${IDL_GENERATED_FILES_C})
target_include_directories(ns_client PUBLIC ${GENERATED_DIR})